cmake_minimum_required(VERSION 3.4.1)

include_directories(src/main/jni)

include_directories(src/main/cpp/include)

aux_source_directory(src/main/cpp SOURCE)

add_library(mp3lame_util SHARED ${SOURCE})


find_library(ANDROID_LOG_LIB log)

add_library(mp3lame-lib STATIC IMPORTED)

set_target_properties(mp3lame-lib
        PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/src/main/jni/libmp3lame/${ANDROID_ABI}/libmp3lame.a
        )
include_directories(src/main/jni/libmp3lame/include)

target_link_libraries(mp3lame_util ${ANDROID_LOG_LIB} mp3lame-lib)